package com.wanpinghui.wphlibrary.share;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;

import com.tencent.mm.opensdk.modelmsg.SendMessageToWX;
import com.tencent.mm.opensdk.modelmsg.WXImageObject;
import com.tencent.mm.opensdk.modelmsg.WXMediaMessage;
import com.tencent.mm.opensdk.modelmsg.WXWebpageObject;
import com.wanpinghui.wphlibrary.share.entity.ShareBean;

import java.io.File;

import retrofit.callback.YRequestCallback;
import rx.android.schedulers.AndroidSchedulers;
import rx.functions.Action1;
import rx.schedulers.Schedulers;

/***
 * 功能描述:第三方分享，二维码分享相关
 * 作者:qiujialiu
 * 时间:2017/5/27
 ***/

public class ShareServiceImp implements ShareService {

    @Override
    public void shareToWX(ShareBean shareBean, YRequestCallback callback) {
        ThirdShareManager.getInstance().shareToWeChat(shareBean,true,callback);
    }


    @Override
    public void shareToWXPY(ShareBean shareBean, YRequestCallback callback) {
        ThirdShareManager.getInstance().shareToWeChat(shareBean,false,callback);
    }

    @Override
    public void shareToQQ(Activity activity, ShareBean shareBean, YRequestCallback callback) {
        ThirdShareManager.getInstance().shareToQQ(activity,shareBean,callback);
    }


}
